<template>
	<view class="body">
		<view class="more-t" v-for="(item,index) in list" :key="index" >
			<view class="fl" v-for="(e,i) in item" :key="i" @click="navTo(e.path)">
				<image :src="e.litpic" mode="widthFix"></image>
				<text>{{e.name}}</text>
			</view>
		</view>
		<navbar :active="3"></navbar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [
					[{
						name: "地址管理",
						path: "/",
						litpic: ``
					}, {
						name: "我的成绩",
						path: "/",
						litpic: ``
					}, {
						name: "毕业论文及报告",
						path: "/",
						litpic: ``
					}, {
						name: "我的申请",
						path: "/",
						litpic: ``
					}],
					[{
						name: "微官网",
						path: "/",
						litpic: ``
					}, {
						name: "智米商城",
						path: "/",
						litpic: ``
					}, {
						name: "学习APP",
						path: "/",
						litpic: ``
					}, {
						name: "个人中心",
						path: "/pages/Newsettings/Newsettings",
						litpic: ``
					}]
				]
			}
		},
		methods: {
			navTo(url) {
				console.log(url);
				uni.navigateTo({
					url,
					fail: (err) => {
						console.log(err);
					}
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.body {
		background-color: #f6f6f6;
		padding: 20rpx;
		min-height: 100vh;

		.more-t {
			display: flex;
			justify-content: space-between;
			align-items: center;
			background-color: #fff;
			border-radius: 10rpx;
			width: 100%;
			padding: 40rpx 20rpx;
			margin-bottom: 40rpx;

			.fl {
				width: 25%;
				font-size: 28rpx;
				display: flex;
				align-items: center;
				flex-direction: column;
				white-space: nowrap;

				image {
					width: 40%;
					margin-bottom: 10rpx;
				}
			}
		}
	}
</style>